package com.thinkgem.jeesite.modules.data.rep.entity;


import com.thinkgem.jeesite.common.persistence.MyBaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 图形化报表配置
 * @author Havel 2019/03/27
 * @since 1.0
 */
public class TfEcReportImgConf extends MyBaseEntity<TfEcReportImgConf> {

    public static final String LIST_DATA_KEY = "imgConfList";
    public static final String TRUE = "1";
    public static final String FALSE = "0";

    /**
     * 折线图
     */
    public static final String IMG_TYPE_Z_STANDARD = "10";//标准曲线图
    public static final String IMG_TYPE_Z_DUIJI = "11";//堆积曲线图
    public static final String IMG_TYPE_Z_TWO_ITMES = "12";//两个月对比折线图
    /**
     * 柱状图
     */
    public static final String IMG_TYPE_ZH_STANDARD = "20";//标准柱状图
    public static final String IMG_TYPE_ZH_TIAO_STANDARD = "25";//标准条形图
    public static final String IMG_TYPE_ZH_TIAO_STANDARD_1 = "26";//标准条形图

    /**
     * 图形配置ID 
     */
    private Long imgConfId;

    /**
     * 报表ID 
     */
    private Long reportId;

    /**
     * X轴Key 
     */
    private String xAxisKey;

    /**
     * Y轴Key 
     */
    private String yAxisKey;

    /**
     * 数据Key 
     */
    private String dataKey;

    /**
     * 图标类型：折线图/柱状体 
     */
    private String imgConfType;

    /**
     * 默认展示数据量，比如10天 
     */
    private Integer dataCnt;

    /**
     * 查询sql
     */
    private String sqlRef;

    /**
     * 默认暂时类型：比如默认展示充值订单/宽带订单 
     */
    private String showDef;

    /**
     * 排序：配置的多个图表时用
     */
    private int sort;

    /**
     * 图形标题
     */
    private String imgTitle;

    /**
     * 是否展示
     */
    private String isShow;

    /**
     * 是否使用主表配置数据
     */
    private String isMainData;

    /**
     * 配置选项
     */
    private String ecOption;

    /**
     * 主题
     */
    private String themn;

    /**
     * 工具配置
     */
    private String toolbox;

    //== vo
    private Date startTime; //查询数据开始时间
    private Date endTime;//查询数据结束时间
    private List<String> xAxisValues;
    private List<String> yAxisValues;
    private Object dataValues;

    private Object xAxisValuesEx;




    public Long getImgConfId() {
        return imgConfId;
    }

    public void setImgConfId(Long imgConfId) {
        this.imgConfId = imgConfId;
    }

    public Long getReportId() {
        return reportId;
    }

    public void setReportId(Long reportId) {
        this.reportId = reportId;
    }

    public String getxAxisKey() {
        return xAxisKey;
    }

    public void setxAxisKey(String xAxisKey) {
        this.xAxisKey = xAxisKey == null ? null : xAxisKey.trim();
    }

    public String getyAxisKey() {
        return yAxisKey;
    }

    public void setyAxisKey(String yAxisKey) {
        this.yAxisKey = yAxisKey == null ? null : yAxisKey.trim();
    }

    public String getDataKey() {
        return dataKey;
    }

    public void setDataKey(String dataKey) {
        this.dataKey = dataKey == null ? null : dataKey.trim();
    }

    public String getImgConfType() {
        return imgConfType;
    }

    public void setImgConfType(String imgConfType) {
        this.imgConfType = imgConfType == null ? null : imgConfType.trim();
    }

    public Integer getDataCnt() {
        return dataCnt;
    }

    public void setDataCnt(Integer dataCnt) {
        this.dataCnt = dataCnt;
    }

    public String getShowDef() {
        return showDef;
    }

    public void setShowDef(String showDef) {
        this.showDef = showDef == null ? null : showDef.trim();
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getSqlRef() {
        return sqlRef;
    }

    public void setSqlRef(String sqlRef) {
        this.sqlRef = sqlRef;
    }

    public List<String> getxAxisValues() {
        return xAxisValues;
    }

    public void setxAxisValues(List<String> xAxisValues) {
        this.xAxisValues = xAxisValues;
    }

    public List<String> getyAxisValues() {
        return yAxisValues;
    }

    public void setyAxisValues(List<String> yAxisValues) {
        this.yAxisValues = yAxisValues;
    }

    public Object getDataValues() {
        return dataValues;
    }

    public void setDataValues(Object dataValues) {
        this.dataValues = dataValues;
    }

    public String getImgTitle() {
        return imgTitle;
    }

    public void setImgTitle(String imgTitle) {
        this.imgTitle = imgTitle;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public String getIsMainData() {
        return isMainData;
    }

    public void setIsMainData(String isMainData) {
        this.isMainData = isMainData;
    }

    public String getThemn() {
        return themn;
    }

    public void setThemn(String themn) {
        this.themn = themn;
    }

    public String getToolbox() {
        return toolbox;
    }

    public void setToolbox(String toolbox) {
        this.toolbox = toolbox;
    }

    public String getEcOption() {
        return ecOption;
    }

    public void setEcOption(String ecOption) {
        this.ecOption = ecOption;
    }

    public Object getxAxisValuesEx() {
        return xAxisValuesEx;
    }

    public void setxAxisValuesEx(Object xAxisValuesEx) {
        this.xAxisValuesEx = xAxisValuesEx;
    }
}